home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / AppleSearch / Macintosh / AppleSearch Client API / Headers / ASClient.r < prev    next >
Encoding:
Text File  |  1995-01-19  |  6.3 KB  |  185 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ASClient.r
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Kazu Yanagihara
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <3>     1/27/94    KAZU        Added STR# resource for the authentication extension name.
  13.  
  14.     To Do:
  15. */
  16.  
  17.  
  18. /*===============================================================================================================
  19.  
  20.             ASClient.r
  21.         
  22.             Copyright Apple Computer, Inc. 1992-1993
  23.             All rights reserved
  24.  
  25. ===============================================================================================================*/
  26.  
  27. #include "SysTypes.r"
  28. #include "Types.r"
  29.  
  30. #ifndef __ASCLIENT__
  31. #include "ASClient.h"
  32. #endif
  33.  
  34.  
  35. //______________________________________________________________________________________________________________________
  36. //_________________________________________________ TYPE DEFINITIONS ___________________________________________________
  37. //______________________________________________________________________________________________________________________
  38.  
  39. type 'LONG' {
  40.     longint;    
  41. };
  42.  
  43. //______________________________________________________________________________________________________________________
  44.  
  45. type 'ULNG' {
  46.     unsigned longint;    
  47. };
  48.  
  49. //______________________________________________________________________________________________________________________
  50. //_________________________________________________________ STR# _______________________________________________________
  51. //______________________________________________________________________________________________________________________
  52.  
  53. // used by ASImportReporter/ASExportReporter
  54. resource 'STR#' ( rReporterStringID, purgeable ) {
  55.     {
  56.     "MRLW";
  57.     "RPTR";
  58.     "Dummy"
  59.     }
  60. };
  61.  
  62. //______________________________________________________________________________________________________________________
  63. // used by Update delivery code
  64. resource 'STR#' ( rPboyStringID, purgeable ) {
  65.     {
  66.     "MRLW";
  67.     "<Unknown>";
  68.     "Update results";
  69.     "<AppleSearch Client>";
  70.     "No articles have been added to the server since the last update was delivered.";
  71.     "Searched for Articles newer than ";
  72.     " on ";
  73.     ".";
  74.     ": ";
  75.     "Retrieved ";
  76.     " article.";
  77.     " articles.";
  78.     " Could not retrieve ";
  79.     " matching article.";
  80.     " matching articles.";
  81.     "Found no new articles matching the search.";
  82.     "This source had no new articles.";
  83.     "Update delivery failed. ";
  84.     "Insufficient disk space to store update.";
  85.     "AppleSearch Communication ran out of memory.";
  86.     "Program error in AppleSearch Communication.";
  87.     "Dummy"
  88.     }
  89. };
  90.  
  91. //______________________________________________________________________________________________________________________
  92. // used by ASSelectServer() and ASLogon()
  93. resource 'STR#' ( rSelectServerStringID, purgeable ) {
  94.     {
  95.     "Select an AppleSearch server";
  96.     "Enter your password";
  97.     "ASClient";
  98.     "<This Macintosh>";
  99.     "The server was busy.  Please try to logon again.",
  100.     ""
  101.     }
  102. };
  103.  
  104. //______________________________________________________________________________________________________________________
  105. // used by LaunchMyExtension()
  106. resource 'STR#' ( rFileStringID, purgeable ) {
  107.     {
  108.     "AppleSearch Authentication";                            // kSI_AuthenticationExtName
  109.     ""
  110.     }
  111. };
  112.  
  113. //______________________________________________________________________________________________________________________
  114. //_______________________________________________________ ULNG _________________________________________________________
  115. //______________________________________________________________________________________________________________________
  116. // timeout value for logon reply = 30 seconds
  117.  
  118. resource 'ULNG' (rLogonTimeoutTicks, preload) {
  119.     1800
  120. };
  121.  
  122. //______________________________________________________________________________________________________________________
  123. // timeout value for logoff reply = 3 seconds
  124.  
  125. resource 'ULNG' (rLogoffTimeoutTicks, preload) {
  126.     180
  127. };
  128.  
  129. //______________________________________________________________________________________________________________________
  130. // default timeout value for transaction replies = 30 minutes
  131.  
  132. resource 'ULNG' (rDefaultTimeoutTicks, preload) {
  133.     108000
  134. };
  135.  
  136. //______________________________________________________________________________________________________________________
  137. // timeout value for tickle reply = max possible w/ signed long = 0x7FFFFFFF
  138.  
  139. resource 'ULNG' (rTickleTimeoutTicks, preload) {
  140.     2147483647
  141. };
  142.  
  143. //______________________________________________________________________________________________________________________
  144. // amount of article text to ask for in one request
  145. resource 'ULNG' (rUpdateTextRequestSize, preload) {
  146.     20480
  147. };
  148.  
  149. //______________________________________________________________________________________________________________________
  150. // amount of disk space to leave free when building updates
  151. resource 'ULNG' (rUpdateExtraDiskSpace, preload) {
  152.     131072
  153. };
  154.  
  155. //______________________________________________________________________________________________________________________
  156. // amount of disk space to leave free when downloading a file from the server
  157. resource 'ULNG' (rDownloadOriginalDiskSpace, preload) {
  158.     1024
  159. };
  160.  
  161. //______________________________________________________________________________________________________________________
  162. // flag for auto logon - if bit 0 is set, then do auto logon at startup
  163. resource 'ULNG' (rAutoLogonFlag, preload) {
  164.     kAutoLogonAtBootMask
  165. };
  166.  
  167. //______________________________________________________________________________________________________________________
  168. //__________________________________________________ COMMENTS FROM 1.0 _________________________________________________
  169. //______________________________________________________________________________________________________________________
  170. /*
  171.     Contains:    Resources used by client C library
  172.  
  173.          <7>    93/08/09    JPS        Added rDownloadOriginalDiskSpace. Checked by KAZU.
  174.          <6>     7/26/93    KAZU    added copyright notice; checked by RM
  175.          <5>     7/23/93    KAZU    changed DarkPassage to ASClient in STR# rSelectServerStringID;
  176.                                     checked by JPS
  177.          <4>    93/07/14    JPS        Added rUpdateTextRequestSize and rUpdateExtraDiskSpace ULNG
  178.                                     resources. Also, added four new Paperboy strings and removed one
  179.                                     unused Paperboy string.
  180.          <3>    93/07/09    JPS        Reduced rLogoffTimeoutTicks to 3 seconds and rLogoffTimeoutTicks
  181.                                     to 30 seconds. Reviewed by RM and KAZU.
  182.          <2>     6/10/93    KAZU    added ASSelectServer() related string resources
  183.          <1>      6/6/93    KAZU    first checked in
  184. */
  185.